package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("report_buy_order")
@NoArgsConstructor
public class ReportBuyOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    public ReportBuyOrder(String type, String typeId, String time, String uri, BigDecimal turnover) {
        this.type = type;
        this.typeId = typeId;
        this.time = time;
        this.uri = uri;
        this.turnover = turnover;
    }

    /**
     * 购买业务报表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 报表类型(个人,部门)
     */
    @TableField("type")
    private String type;

    /**
     * 对应个人,部门的识别码
     */
    @TableField("type_id")
    private String typeId;

    /**
     * 对应的月份,例如:2020/02
     */
    @TableField("time")
    private String time;

    /**
     * 文件下载地址
     */
    @TableField("uri")
    private String uri;

    /**
     * 营业额
     */
    @TableField("turnover")
    private BigDecimal turnover;


}
